package com.bootdo.system.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bootdo.system.dao.UserRoleDao;
import com.bootdo.system.domain.RoleDO;

import com.bootdo.system.domain.UserRoleDO;

import com.bootdo.system.service.UserRoleService;


@Service
public class UserRoleServiceImpl implements UserRoleService {
    
	@Autowired
	UserRoleDao userRoleDao;
	
	
	
	@Override
	public UserRoleDO get(Long id) {
		// TODO Auto-generated method stub
		return userRoleDao.get(id);
	}

	@Override
	public List<RoleDO> list() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int save(UserRoleDO role) {
		// TODO Auto-generated method stub
		return userRoleDao.save(role);
	}

	@Override
	public int update(UserRoleDO role) {
		// TODO Auto-generated method stub
		return userRoleDao.update(role);
	}
	
	
	@Override
	public int updateRoleId(UserRoleDO userRole) {
		// TODO Auto-generated method stub
		return userRoleDao.updateRoleId(userRole);
	}

	@Override
	public int remove(Long id) {
		// TODO Auto-generated method stub
		return userRoleDao.remove(id);
	}

	@Override
	public List<UserRoleDO> list(Long userId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int batchremove(Long[] ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int getByUserId(Long id) {
		// TODO Auto-generated method stub
		return  userRoleDao.getByUserId(id);
	}



}
